
component accessors="true" output="false" extends="AbsDelegate"
{

	property name="CategoryFactory" type="it.millemultimedia.easyBlog.factory.CategoryFactory";

	public it.millemultimedia.easyBlog.delegate.CategoryDelegate function init( required Any dataObject ){
		
		variables.dataObject = arguments.dataObject;
		
		return this;
	}
	
	public it.millemultimedia.easyBlog.validator.CategoryValidator function getValidator(){
		
		return getCategoryFactory().getValidator();
	}
	
	public it.millemultimedia.easyBlog.model.Category function createInstance(){
		
		return getCategoryFactory().createInstance();
	}

	public it.millemultimedia.easyBlog.model.Category[] function createList( required String listStr, required String propertyName ){
		
		return getCategoryFactory().createList( arguments.listStr, arguments.propertyName );
		
	}

	public void function create( required Any Category ){
		
		variables.dataObject.create( argumentCollection=arguments );
		
	}

	public void function update( required Any Category ){
		
		variables.dataObject.update( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Category function read( required Any Category ){
	
		var list = "";
		var Categories = variables.dataObject.read( arguments.Category );
		
		Category = getCategoryFactory().get( Categories );
		
		
		return Category;
		
	}

	public void function delete( required Any Category ){
		
		variables.dataObject.delete( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Category[] function list( required Any Category, Numeric start=0, Numeric count=0 ){
	
		var list = "";
		var Categories = variables.dataObject.list( arguments.Category );
		
		list = getCategoryFactory().list( Categories, arguments.start, arguments.count );
		
		
		return list;
		
	}

}


